<?php
//微信用户相关

namespace App\Http\Controllers;

use App\Repositories\FollowRepository;
use App\Http\Controllers\BaseController;

class ScheduleController extends BaseController
{
    /**
     * 每天更新最高点和最低点的价格
     * @param Request $request
     * @param FollowRepository $followRepository
     */
    public function updateHightestAndLowestPrice() {
//        $isOpen = request()->get('open');
        $followRepository = new FollowRepository();
        $followRepository->updateHightestAndLowestPrice();
    }

    /**
     * 监测
     */
    public function monitor()
    {
        $followRepository = new FollowRepository();
        $debug = request()->debug;
        $followRepository->monitor($debug);
    }
}
